import service from '@/utils/requestTopo';

export const createSceneCopy = data =>
  service({
    url: `/simulation/scene/scene/copy/`,
    method: 'post',
    data,
  });

export const getSceneCopyList = params =>
  service({
    url: `/simulation/scene/scene/copy/`,
    method: 'get',
    params,
  });

export const deleteSceneCopy = id =>
  service({
    url: `/simulation/scene/scene/copy/${id}/`,
    method: 'delete',
  });

export const getAllSceneVersion = () =>
  service({
    url: `/simulation/scene/scene/version/`,
    method: 'get',
  });

//获取副本画布详情
export const getCopyTopologyDetail = (id, params) =>
  service({
    url: `/simulation/scene/scene/copy/${id}/`,
    method: 'get',
    params: params,
  });

// 操作场景副本
export const operationSceneCopy = (id, data) =>
  service({
    url: `/simulation/scene/scene/copy/${id}/operation/`,
    method: 'post',
    data,
  });
